import Http from "@/http"


export function pageApi(params:any) {
    return Http.post('chargingCard/page', params)
}

export function saveApi(params:any) {
    return params.id ? Http.put('chargingCard/update/' + params.id, params) : Http.post('chargingCard/add', params)
}


export function deleteApi(id) {
    return Http.delete('chargingCard/delete/' + id)
}


export function rechargePageApi(params:any) {
    return Http.post('chargingCard/recharge/page', params)
}